// const store = localStorage.getItem('storeId')
// import axios from '@/utils/request'

export default {
  StoreBalanceLog: {
    entity: { name: 'BalanceLog', prefix: `api` },
    list: {
      disabled_actions: ['new', 'lines'],
      query: {
        '@order': 'entity.id|DESC'
      },
      list_filter: {
        beforeCreatedTime: {
          expression: 'entity.getCreatedTime() >= datetime.get(":value  00:00:00")',
          label: '开始时间',
          type: 'date'
        },
        afterCreatedTime: {
          expression: 'entity.getCreatedTime() < datetime.get(":value 23:59:59")',
          label: '结束时间',
          type: 'date'
        }
      },
      list_display: [
        { property: 'before', label: '变动前' },
        { property: 'after', label: '变动后' },
        { property: 'amount', label: '变动金额' },
        'comment',
        'createdTime'
      ]
    },
    form: {
      fields: [
      ]
    }
  }
}

